
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon meyley-icon meyley-icon-home"></i>
                    <div class="name">home</div>
                    <div class="fontclass">.meyley-icon-home</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-lock"></i>
                    <div class="name">lock</div>
                    <div class="fontclass">.meyley-icon-lock</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-eye"></i>
                    <div class="name">eye</div>
                    <div class="fontclass">.meyley-icon-eye</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-edit"></i>
                    <div class="name">编辑</div>
                    <div class="fontclass">.meyley-icon-edit</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-arrow-down"></i>
                    <div class="name">arrow-down</div>
                    <div class="fontclass">.meyley-icon-arrow-down</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-more"></i>
                    <div class="name">更多</div>
                    <div class="fontclass">.meyley-icon-more</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-search"></i>
                    <div class="name">search</div>
                    <div class="fontclass">.meyley-icon-search</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-arrow-up"></i>
                    <div class="name">arrow-up</div>
                    <div class="fontclass">.meyley-icon-arrow-up</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-location"></i>
                    <div class="name">location</div>
                    <div class="fontclass">.meyley-icon-location</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-soucang"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.meyley-icon-soucang</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-remai"></i>
                    <div class="name">热卖宝贝</div>
                    <div class="fontclass">.meyley-icon-remai</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-activity"></i>
                    <div class="name">活动</div>
                    <div class="fontclass">.meyley-icon-activity</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-fenlei"></i>
                    <div class="name">分类</div>
                    <div class="fontclass">.meyley-icon-fenlei</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-delete"></i>
                    <div class="name">delete</div>
                    <div class="fontclass">.meyley-icon-delete</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-sale"></i>
                    <div class="name">特价</div>
                    <div class="fontclass">.meyley-icon-sale</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-shopcard"></i>
                    <div class="name">购物车</div>
                    <div class="fontclass">.meyley-icon-shopcard</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-download"></i>
                    <div class="name">下载</div>
                    <div class="fontclass">.meyley-icon-download</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-search-list"></i>
                    <div class="name">search</div>
                    <div class="fontclass">.meyley-icon-search-list</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-phone"></i>
                    <div class="name">phone</div>
                    <div class="fontclass">.meyley-icon-phone</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-left-arrow"></i>
                    <div class="name">left-arrow</div>
                    <div class="fontclass">.meyley-icon-left-arrow</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-friend"></i>
                    <div class="name">app好友</div>
                    <div class="fontclass">.meyley-icon-friend</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-me"></i>
                    <div class="name">我的</div>
                    <div class="fontclass">.meyley-icon-me</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-right-arrow"></i>
                    <div class="name">arrow-right</div>
                    <div class="fontclass">.meyley-icon-right-arrow</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-kefu"></i>
                    <div class="name">客服</div>
                    <div class="fontclass">.meyley-icon-kefu</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-buycard2"></i>
                    <div class="name">购物车 (2)</div>
                    <div class="fontclass">.meyley-icon-buycard2</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-pinpai"></i>
                    <div class="name">品牌</div>
                    <div class="fontclass">.meyley-icon-pinpai</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-filter"></i>
                    <div class="name">filter</div>
                    <div class="fontclass">.meyley-icon-filter</div>
                </li>
            
                <li>
                <i class="icon meyley-icon meyley-icon-faxian"></i>
                    <div class="name">发现</div>
                    <div class="fontclass">.meyley-icon-faxian</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">meyley-icon</span> <span class="hljs-selector-tag">meyley-icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"meyley-icon"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
